import request from '@/utils/request'

// 查询服务分类管理列表
export function listServiceCategories(query) {
    return request({
        url: '/serviceCategories/serviceCategories/list',
        method: 'get',
        params: query
    })
}

// 查询服务分类管理所有列表
export function listAllServiceCategories(query) {
    return request({
        url: '/serviceCategories/serviceCategories/listAll',
        method: 'get',
        params: query
    })
}

// 查询服务分类管理详细
export function getServiceCategories(id) {
    return request({
        url: '/serviceCategories/serviceCategories/getInfo/' + id,
        method: 'get'
    })
}

// 新增服务分类管理
export function addServiceCategories(data) {
    return request({
        url: '/serviceCategories/serviceCategories/add',
        method: 'post',
        data: data
    })
}

// 修改服务分类管理
export function updateServiceCategories(data) {
    return request({
        url: '/serviceCategories/serviceCategories/edit',
        method: 'post',
        data: data
    })
}

// 删除服务分类管理
export function delServiceCategories(id) {
    return request({
        url: '/serviceCategories/serviceCategories/remove/' + id,
        method: 'get'
    })
}